import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/article_extra_entity.dart';

ArticleExtraEntity $ArticleExtraEntityFromJson(Map<String, dynamic> json) {
	final ArticleExtraEntity articleExtraEntity = ArticleExtraEntity();
	final String? contract = jsonConvert.convert<String>(json['contract']);
	if (contract != null) {
		articleExtraEntity.contract = contract;
	}
	final String? loc = jsonConvert.convert<String>(json['loc']);
	if (loc != null) {
		articleExtraEntity.loc = loc;
	}
	final String? username = jsonConvert.convert<String>(json['username']);
	if (username != null) {
		articleExtraEntity.username = username;
	}
	final String? profile = jsonConvert.convert<String>(json['profile']);
	if (profile != null) {
		articleExtraEntity.profile = profile;
	}
	final String? time = jsonConvert.convert<String>(json['time']);
	if (time != null) {
		articleExtraEntity.time = time;
	}
	final String? comment = jsonConvert.convert<String>(json['comment']);
	if (comment != null) {
		articleExtraEntity.comment = comment;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		articleExtraEntity.sex = sex;
	}
	return articleExtraEntity;
}

Map<String, dynamic> $ArticleExtraEntityToJson(ArticleExtraEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['contract'] = entity.contract;
	data['loc'] = entity.loc;
	data['username'] = entity.username;
	data['profile'] = entity.profile;
	data['time'] = entity.time;
	data['comment'] = entity.comment;
	data['sex'] = entity.sex;
	return data;
}